package com.example.myspringbootpj.entity;

//封装单词及其翻译结果：
public class TranslatedWord {
    private int wordId;
    private String wordText;
    private String translation;

    public TranslatedWord(int wordId, String wordText, String translation) {
        this.wordId = wordId;
        this.wordText = wordText;
        this.translation = translation;
    }

    public int getWordId() {
        return wordId;
    }

    public void setWordId(int wordId) {
        this.wordId = wordId;
    }

    public String getWordText() {
        return wordText;
    }

    public void setWordText(String wordText) {
        this.wordText = wordText;
    }

    public String getTranslation() {
        return translation;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }
}
